package com.yizhuoyan.his.dao;

import com.yizhuoyan.his.entity.HosDrugsEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (HosDrugs)表数据库访问层
 *
 * @author yizhuoyan@yizhuoyan.com
 * @since 2020-02-20 15:06:15
 */
public interface HosDrugsDao extends TemplateDao<Long,HosDrugsEntity>{

    //额外方法

    /**
     * 通过患者id 查询药品
     * @param id
     * @return 药品
     * @throws Exception
     */
    List<HosDrugsEntity> selectHerbalPrescriptionDetailDrugById(@Param("id") long id) throws Exception;
    /**
     * 通过患者id  查询西药
     * @param id
     * @return
     * @throws Exception
     */
    List<HosDrugsEntity>  selectPrescriptionDetailDrugById(@Param("id")long id ) throws Exception;
}